package com.caishi.lkx.user.service;

import com.caishi.lkx.user.model.UserDeviceModel;
import com.zzw.common.entity.BSDService;
import com.caishi.lkx.common.ienum.DeviceType;

import com.caishi.lkx.user.dto.UserDeviceState;
import com.caishi.lkx.user.vo.UserDevicePushResult;

import java.util.List;

public interface IUserDeviceService extends BSDService<UserDeviceModel, String> {
    void settingUserDevice(String userId, boolean login, DeviceType deviceType, UserDeviceState deviceIdData);

    /**
     *<p>
     *   <h3>作者 keray</h3>
     *   <h3>时间： 2021/9/16 10:43 上午</h3>
     *   获取用户当前app推送的设备
     *</p>
     * @param userId
     * @return <p> {@link List<UserDevicePushResult>} </p>
     * @throws
     */
    List<UserDevicePushResult> appPushUserDevice(String userId);
    /**
     *<p>
     *   <h3>作者 keray</h3>
     *   <h3>时间： 2021/9/16 10:43 上午</h3>
     *   获取批量用户当前app推送的设备
     *</p>
     * @param userIds
     * @return <p> {@link List<List<UserDevicePushResult>>} </p>
     * @throws
     */
    List<List<UserDevicePushResult>> appPushUserDevice(List<String> userIds);

}
